﻿using Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace Infrastructure
{
    public class UnitOfWork : IUnitOfWork
    {
        private readonly BMSContext _db;

        public UnitOfWork(BMSContext db)
        {
            _db = db;
        }
        public  bool Save()
        {
            return _db.SaveChanges() > 0;
        }
    }
}
